import request from '@/utils/request'

export const getUsersListApi = () => request.get('/users')
export const getUsersByIdApi = (id) => request.get(`/users/${id}`)

export const addUserApi = (data) => request.post(`/users`, data)

export const editUserByIdApi = (id, data) => request.patch(`/users/${id}`, data)

export const deleteUserByIdApi = (id) => request.delete(`/users/${id}`)
